using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using MySql.Data.MySqlClient;

namespace Academia.Datos
{
    public class General
    {
        #region Miembros
        const string consKeyDeafultConnString = "server=localhost;database=academia;uid=root;pwd=rojosi";
        #endregion

        /// <summary>
        /// 
        /// </summary>
        public static MySqlConnection CreateConnection()
        {
            MySqlConnection oConn;
            string connectionString = "";

            try
            {
                connectionString = Utilidades.Configuracion.GetValue("connectionString");
                oConn = new MySqlConnection();
                oConn.ConnectionString = connectionString;
                return oConn;
            }

            finally
            {
                oConn = null;
            }

        }
    }
}
